package com.ruoyi.system.domain.parm;

import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * cancel_order_fee取消订单手续费对象 sys_cancel_order_fee
 * 
 * @author ruoyi
 * @date 2024-04-05
 */
public class SysCancelOrderFeeParm extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @ApiModelProperty(value = "id",example = "")
    private String id;

    /** 取消订单手续费  单位 元 */
    @Excel(name = "取消订单手续费  单位 元")
    @ApiModelProperty(value = "取消订单手续费",example = "",required = true)
    @NotNull
    private BigDecimal fee;

    /** 离消费时间距离多少小时（时间范围开始小时）（不足1小时算0小时，小于2小时且大于1小时算1小时） */
    @Excel(name = "离消费时间距离多少小时", readConverterExp = "时=间范围开始小时")
    @ApiModelProperty(value = "离消费时间距离多少小时",example = "",required = true)
    @NotNull
    private Integer appointmentBefor;

    /** 离消费时间距离多少小时（时间范围结束小时）（不足1小时算0小时，小于2小时且大于1小时算1小时） */
    @Excel(name = "离消费时间距离多少小时", readConverterExp = "时=间范围结束小时")
    @ApiModelProperty(value = "离消费时间距离多少小时",example = "",required = true)
    @NotNull
    private Integer appointmentAfter;

    /** 商家id */
    @Excel(name = "商家id")
    @ApiModelProperty(value = "商家id",example = "",hidden = true)
    private String businessId;

    /** 删除标志 */
    @ApiModelProperty(value = "删除标志",example = "",hidden = true)
    private String delFlag;

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setFee(BigDecimal fee) 
    {
        this.fee = fee;
    }

    public BigDecimal getFee() 
    {
        return fee;
    }
    public void setAppointmentBefor(Integer appointmentBefor) 
    {
        this.appointmentBefor = appointmentBefor;
    }

    public Integer getAppointmentBefor() 
    {
        return appointmentBefor;
    }
    public void setAppointmentAfter(Integer appointmentAfter) 
    {
        this.appointmentAfter = appointmentAfter;
    }

    public Integer getAppointmentAfter() 
    {
        return appointmentAfter;
    }
    public void setBusinessId(String businessId)
    {
        this.businessId = businessId;
    }

    public String getBusinessId()
    {
        return businessId;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("fee", getFee())
            .append("appointmentBefor", getAppointmentBefor())
            .append("appointmentAfter", getAppointmentAfter())
            .append("businessId", getBusinessId())
            .append("delFlag", getDelFlag())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
